package com.spark.colliery.module.home.model

import com.spark.colliery.R
import java.util.*


data class OptionsItemModel(var iconResId: Int = 0, var name: String = "") {


    companion object {

        fun generateHomeData(): List<OptionsItemModel> {
            val backup = OptionsItemModel(R.drawable.btn_home_option_backup, "备忘录")
            val depart = OptionsItemModel(R.drawable.btn_home_options_depart, "部门通知")
            val material = OptionsItemModel(R.drawable.btn_home_options_material, "资料检索")
            val xieshang = OptionsItemModel(R.drawable.btn_home_options_xieshang, "协商函")
            val meeting = OptionsItemModel(R.drawable.btn_home_options_meeting, "会议纪要")

            val optionsList = ArrayList<OptionsItemModel>()
            optionsList.add(backup)
            optionsList.add(depart)
            optionsList.add(material)
            optionsList.add(xieshang)
            optionsList.add(meeting)
            optionsList.add(backup)
            optionsList.add(depart)
            optionsList.add(material)
            optionsList.add(xieshang)
            optionsList.add(meeting)
            return optionsList
        }

        fun generateMineData(): List<OptionsItemModel> {
            val ricahngbangong = OptionsItemModel(R.drawable.icon_richangbangong, "日常办公")
            val jiuweichuli = OptionsItemModel(R.drawable.icon_jiuweichuli, "纠违处理")
            val biaozhunhuagongzuo = OptionsItemModel(R.drawable.icon_biaozhunhuazuoye, "标化工作")
            val biaozhunhuajiancha = OptionsItemModel(R.drawable.icon_biaozhunhuajiancha, "标化检查")
            val yinhuanpaicha = OptionsItemModel(R.drawable.icon_yinhuanpaicha, "隐患排查")
            val xieshanghan = OptionsItemModel(R.drawable.icon_xieshanghan, "协商函")
            val huiyitongzhi = OptionsItemModel(R.drawable.icon_huiyitongzhi, "会议通知")
            val huiyijiyao = OptionsItemModel(R.drawable.icon_huiyijiyao, "会议纪要")

            val optionsList = ArrayList<OptionsItemModel>()
            optionsList.add(ricahngbangong)
            optionsList.add(jiuweichuli)
            optionsList.add(biaozhunhuagongzuo)
            optionsList.add(biaozhunhuajiancha)
            optionsList.add(yinhuanpaicha)
            optionsList.add(xieshanghan)
            optionsList.add(huiyitongzhi)
            optionsList.add(huiyijiyao)
            return optionsList
        }
    }
}
